﻿using Mengsk.ProxyDelivery.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace Mengsk.ProxyDelivery.App.UI.Accounting
{
    class SellerWithdrawalVM : DependencyObject
    {
        public static readonly DependencyProperty IsCheckedProperty = DependencyProperty.Register("IsChecked", typeof(bool), typeof(SellerWithdrawalVM));
        public static readonly DependencyProperty StateProperty = DependencyProperty.Register("State", typeof(SellerWithdrawsState), typeof(SellerWithdrawalVM));

        public bool IsChecked { get { return (bool)this.GetValue(IsCheckedProperty); } set { this.SetValue(IsCheckedProperty, value); } }

        public Mengsk.ProxyDelivery.Domain.SellerWithdrawsState State { get { return (SellerWithdrawsState)this.GetValue(StateProperty); } set { this.SetValue(StateProperty, value); } }

        public Mengsk.ProxyDelivery.Domain.SellerWithdrawal Source { get; set; }
        public SellerWithdrawalVM(Mengsk.ProxyDelivery.Domain.SellerWithdrawal sellerWithdrawal)
        {
            this.Source = sellerWithdrawal;
            this.IsChecked = false;
            this.State = this.Source.State;
        }
    }
}
